package com.wanmait.bootdemo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

@SpringBootApplication//(exclude = DataSourceAutoConfiguration.class)
//默认自动扫描启动类所在的包及其子包，如果配置了@ComponentScan默认配置不起作用了
//@ComponentScan({"com.wanmait.controller","com.wanmait.bootdemo"})
//mapper接口的自动扫描
@MapperScan("com.wanmait.bootdemo.mapper")
@ServletComponentScan //servlet filter listener 都起作用
//@ImportResource("classpath:spring.xml")
public class BootdemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(BootdemoApplication.class, args);
        /*SpringApplication application = new SpringApplication(BootdemoApplication.class);
        application.setBannerMode(Banner.Mode.OFF);
        application.run(args);*/
    }

}
